Skip to content

Conversation

@hoodmane
Copy link
Contributor

No description provided.

@hoodmane hoodmane requested review from a team as code owners February 11, 2026 04:40
@hoodmane hoodmane force-pushed the hoodmane/codemn-pyodide-fatals branch from f71e357 to 543a048 Compare February 11, 2026 04:43
Copy link
Contributor

@ryanking13 ryanking13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there some way to unit test this behavior?

@ryanking13 ryanking13 requested a review from a team February 11, 2026 06:51
@hoodmane
Copy link
Contributor Author

It's tested in the other repo. Though maybe I can use sub requests to test it here -- it's a bit tricky to use py_wd_test to test crashes.

1 similar comment
@hoodmane
Copy link
Contributor Author

It's tested in the other repo. Though maybe I can use sub requests to test it here -- it's a bit tricky to use py_wd_test to test crashes.

kj::Exception error(kj::Exception::Type::FAILED, __FILE__, __LINE__, kj::mv(description));

// Condemn the isolate so future requests get a fresh one
Worker::Isolate::from(js).getLimitEnforcer().condemn();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I've mentioned in upstream PR, I think we want a custom method for this.

Copy link
Collaborator

@danlapid danlapid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we re-discuss this please? I don't like this approach.
We need to think of a good approach that we can actually give users.
Ideally one that doesn't find a way to use internal APIs.
We need to make sure what we do works and is available for rust users as well
@guybedford

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants